<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	String filePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()+"/file/";
%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<script type="text/javascript" src="<%=basePath%>js/jquery-1.9.0.min.js"></script>
<script type="text/javascript" src="<%=basePath%>js/xadmin.js"></script>
<link rel="stylesheet" href="<%=basePath%>css/font.css">
<link rel="stylesheet" href="<%=basePath%>css/xadmin.css">
<script src="<%=basePath%>lib/layui/layui.js" charset="utf-8"></script>
<script src="<%=basePath%>js/pc/admin/homeRotaryMap.js" charset="utf-8"></script>

</head>
<body class="layui-anim layui-anim-up">
	<input id="idClass" type="hidden"
		value="<%=request.getAttribute("id")%>">
	<input id="typeClass" type="hidden"
		value="<%=request.getAttribute("type")%>">
	<div class="x-nav">
		<span class="layui-breadcrumb"> <a id="aClass">首页轮播图</a> <a>
				<cite>导航元素</cite>
		</a>
		</span> <a class="layui-btn layui-btn-small"
			style="line-height: 1.6em; margin-top: 3px; float: right"
			onclick="location.reload()" title="刷新"> <i
			class="layui-icon layui-icon-refresh" style="line-height: 35px;"></i></a>
	</div>
	<div class="layui-container">
		<div class="layui-row" style="margin-top: 25px">
			<div class="layui-col-md12">
				<form class="layui-form layui-form-pane" method="post">
					<div class="layui-form-item">
						    <label class="layui-form-label">首页轮播</label>
						   <button type="button" class="layui-btn" id="test2">
							  <i class="layui-icon">&#xe64a;</i>选择图片
							</button>
							<button type="button" class="layui-btn back">
							  <i class="layui-icon">&#xe65c;</i>删除最后一张
							</button>
							<button id="buttonClass" class="layui-btn" lay-submit
								lay-filter="formDemo">保存
							</button>
					 </div>
					 <blockquote id="demo2" class="layui-elem-quote">
					 	<c:forEach items="${list.split(',')}" var="item">
					   		<img alt="" style="width: 200px;height: 70px" src="<%=filePath %>${item}">
					 	</c:forEach>
					 </blockquote>
					 <input type="hidden" id="fileupload" value="${list}" name="cPhoto" >
				</form>
			</div>
		</div>
	</div>
	<div class="layui-container">
		<div class="layui-carousel" id="carousel">
	 	<div carousel-item>
	 	
	 	<c:forEach items="${list.split(',')}" var="item">
	 		<div>
	   		<img alt="" src="<%=filePath %>${item}">
	   		</div>
	 	</c:forEach>
	 	</div>
	</div>
	
	</div>
	
</body>
</html>